package com.imooc.girl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping(value={"/hello", "/hi"})
@RestController
public class HelloController {

    @Autowired
    private GirlProperties girllProperties;

    //    @GetMapping(value="say")
    @RequestMapping(value="/say", method=RequestMethod.GET)
    public String say(@RequestParam(value = "id", required = false, defaultValue = "0") Integer id){
//        return "id:"+id;
        return girllProperties.getBroadSize();
    }

}
